import request from '@/utils/request'

// 查询获奖信息集列表
export function listAward(query) {
  return request({
    url: '/teacher/award/list',
    method: 'get',
    params: query
  })
}

// 查询获奖信息集详细
export function getAward(recordid) {
  return request({
    url: '/teacher/award/' + recordid,
    method: 'get'
  })
}

// 新增获奖信息集
export function addAward(data) {
  return request({
    url: '/teacher/award',
    method: 'post',
    data: data
  })
}

// 修改获奖信息集
export function updateAward(data) {
  return request({
    url: '/teacher/award',
    method: 'put',
    data: data
  })
}

// 删除获奖信息集
export function delAward(recordid) {
  return request({
    url: '/teacher/award/' + recordid,
    method: 'delete'
  })
}

// 导出获奖信息集
export function exportAward(query) {
  return request({
    url: '/teacher/award/export',
    method: 'get',
    params: query
  })
}